<?php
if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {
    Header("Location: ../index.php");
    exit;
}

global $prefix, $db, $bgcolor1, $bgcolor4;
$num = 10;
$content = "";
$result = $db->sql_query("SELECT lid, title, UNIX_TIMESTAMP(date) as formatted FROM ".$prefix."_files WHERE status !='0' ORDER BY date DESC LIMIT $num");
$conz = "";
while(list($lid, $title, $addtime) = $db->sql_fetchrow($result)) {
		$conz .= "<tr><td><img border=\"0\" src=\"images/navi.gif\" width=\"6\" height=\"6\">&nbsp;&nbsp;<a href=\"modules.php?name=Files&go=view_file&lid=$lid\"><b>$title</b></a></td><td align=\"right\">".viewtime($addtime,1)."</td></tr>\n";
}
if($conz!="") {
$content .= "<table border=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" width=\"100%\">";
$content .= "".$conz."";
$content .= "</table>";
}

?>